Skip to main content

lock messages

Type​

command

Summary​

Sets the lockMessages property to true, preventing setProp triggers, getProp calls, and certain messages from being sent.

Syntax​

lock messages

Description​

Use the lock messages command when a handler performs an action (such as opening a stack) and you want to speed up access by preventing unnecessary navigation messages (such as openStack) from being sent.

The lock messages command sets the lockMessages property to true.

When all pending handlers are finished executing, the lockMessages property is set back to false.

Examples​

lock messages
if the commandKey is down then lock messages

command: revUpdateGeometry, lock moves, lock recent, unlock messages, lock error dialogs, lock screen, revCacheGeometry

glossary: property, getProp call, navigation message, handler, setProp trigger, message, command

message: openStack

object: stack

property: lockMessages

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?